Click here to Skip to main content
15,890,527 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I have a TreeView menu on a parent or base base that hosts an IFrame in which content pages corresponding to menu items are loaded. Ideally one of my content pages should dymamically insert its own contextual items into it's section of the TreeView menu.

I have a strong suspicion that jQuery is pretty much the only tool I am familair with that I will be able to use here, but any suggestions as to where to start with this quest will be most appreciated.
Posted

1 solution

Hi,

If tree view menu is dynamic(formed the menu from data base or any repository) then in that case you can always update the repository from the content page and reload the parent page using javascript code :

window.parent.location.reload(true);

OR

window.parent.location.href = 'Url you want to load';

you can always call this script after updating the repository on the content page by using the following code:

ClientScript.RegisterStartupScript(GetType(), "refreshParentPage", "window.parent.location.href = 'Url you want to load';", true);

Hope this will Help...

Pls let me know if you need any thin further on the same.

Thanx,

Adil...:))
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900